<?php include($_SERVER['DOCUMENT_ROOT'].'/rspinf-usb/formatoPagina/encabezado.php') ?>
<?php include($_SERVER['DOCUMENT_ROOT'].'/rspinf-usb/formatoPagina/menu.php') ?>
<?php include($_SERVER['DOCUMENT_ROOT'].'/rspinf-usb/formatoPagina/inicioBL.php') ?>


<?php include($_SERVER['DOCUMENT_ROOT'].'/rspinf-usb/formatoPagina/finBL.php') ?>
<?php include($_SERVER['DOCUMENT_ROOT'].'/rspinf-usb/formatoPagina/inicioContenido.php') ?>

<table>


<br />
   <h4>Moderando mensaje</h4>
<?php
     $ms = nl2br($m->getMensaje());
    $acc = array();
    foreach ($m->getDestinatarios() as $d) {
      $acc[] = $d->getUsername();
    }
      $strdest = implode(",", $acc);
   echo "<tr><td>Asunto:</td><td> {$m->getAsunto()} </td></tr>";
   echo "<tr><td>Enviado por:</td><td> {$m->getEmisor()->getUsername()} </td></tr>";
echo "<tr><td>Enviado a:</td><td> {$strdest} </td>";
   echo "<tr><td>Mensaje</td><td> {$ms} </td></tr>";
?>
</table>

<?php
  if (isset($avisos)) {
    echo "<ul>";
    foreach ($avisos as $aviso) {
      echo "<li>{$aviso}</li>";
    }
    echo "</ul>";
  }
?>
<?php include($_SERVER['DOCUMENT_ROOT'].'/rspinf-usb/formatoPagina/finContenido.php') ?>